<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<script type="text/javascript" src="/fuman/js/report.js"></script>
<title>PAYPAL 交易记录</title>
<body class="withvernav">
<div class="bodywrapper"> {{include file='/public/leftmenu.tpl'}}
  <div class="centercontent">
    <div class="pageheader notab">
      <h1 class="pagetitle">PAYPAL 交易记录</h1>
    </div>
    <form class="stdform stdform2" method="get" id="search" action="/paypal/ajaxbutton">

      <div class="tableoptions">
      <input type="hidden" name="op" value="searchnotes">
      <span>条件</span>
      <select name="where" id="where"  class="selection select2_group" style="width:120px;">
              <option value="*" {{if "*"==$where}} selected{{/if}}>--请选择--</option>
              <option value="pay_account" {{if "pay_account"==$where}} selected{{/if}}>PAYPAL账户</option>
              <option value="EMAIL" {{if "EMAIL"==$where}} selected{{/if}}>顾客邮箱</option>
              <option value="NAME" {{if "NAME"==$where}} selected{{/if}}>顾客姓名</option>
              <option value="TRANSACTIONID" {{if "TRANSACTIONID"==$where}} selected{{/if}}>PAYPAL交易号</option> 
        </select>
       <input type="text" name="value" id="kw" class="width200" value="{{$value}}" placeholder="关键词" />
&nbsp;
<span>类型</span>
<select name="TYPE" id="TYPE"  class="selection select2_group" style="width:130px;" >
             <option value="*" {{if "*"==$TYPE}} selected{{/if}}>--请选择--</option>
             <option value="Reserve_Hold" {{if "Reserve_Hold"==$TYPE}} selected{{/if}}>预留保留</option>
             <option value="Paymentp" {{if "Paymentp"==$TYPE}} selected{{/if}}>收入</option>
             <option value="Paymentl" {{if "Paymentl"==$TYPE}} selected{{/if}}>支出</option>
             <option value="Recurring_Payment" {{if "Recurring_Payment"==$TYPE}} selected{{/if}}>经常性支付</option>
             <option value="Temporary_Hold" {{if "Temporary_Hold"==$TYPE}} selected{{/if}}>临时保留</option>
             <option value="Transfer" {{if "Transfer"==$TYPE}} selected{{/if}}>转让</option>
             <option value="Donation" {{if "Donation"==$TYPE}} selected{{/if}}>捐款</option>
             <option value="Funds_Availability" {{if "Funds_Availability"==$TYPE}} selected{{/if}}>资金可用性</option>
             <option value="Fee_Reversal" {{if "Fee_Reversal"==$TYPE}} selected{{/if}}>费用冲销</option>
</select>
        <span>交易生成时间</span>
           <input type="text"  name="starttime" value="{{$starttime}} " onClick="WdatePicker({dateFmt:'yyyy-MM-dd '})" class="width100 hasDatepicker" /> - <input type="text"  name="endtime" value="{{$endtime}} " onClick="WdatePicker({dateFmt:'yyyy-MM-dd '})" class="width100 hasDatepicker" />
<!--         <span>状态</span>
        <select name="STATUS" id="STATUS"  class="selection select2_group" style="width:150px;">
          <option value="*" {{if "*"==$STATUS}} selected{{/if}}>--请选择--</option>
          <option value="None" {{if "None"==$STATUS}} selected{{/if}}>无状态</option>
          <option value="Canceled-Reversal" {{if "Canceled-Reversal"==$STATUS}} selected{{/if}}>逆转已被取消</option>
          <option value="Completed" {{if "Completed"==$STATUS}} selected{{/if}}>付款已完成</option>
          <option value="Denied" {{if "Denied"==$STATUS}} selected{{/if}}>你拒绝了付款</option>
          <option value="Expired" {{if "Expired"==$STATUS}} selected{{/if}}>此付款的授权期已到</option>
          <option value="Failed" {{if "Failed"==$STATUS}} selected{{/if}}>付款失败</option>
          <option value="In-Progress" {{if "In-Progress"==$STATUS}} selected{{/if}}>交易尚未终止</option>
          <option value="Partially-Refunded" {{if "Partially-Refunded"==$STATUS}} selected{{/if}}>付款已经部分退还</option>
          <option value="Pending" {{if "Pending"==$STATUS}} selected{{/if}}>付款正在等待处理</option>
          <option value="Refunded" {{if "Refunded"==$STATUS}} selected{{/if}}>您退还了付款</option>
          <option value="Reversed" {{if "Reversed"==$STATUS}} selected{{/if}}>付款被撤销</option>
          <option value="Processed" {{if "Processed"==$STATUS}} selected{{/if}}>付款已被接受</option>
          <option value="Voided" {{if "Voided"==$STATUS}} selected{{/if}}>此交易的授权已被废止</option>
          <option value="Placed" {{if "Placed"==$STATUS}} selected{{/if}}>放置</option>
          <option value="Funds_available" {{if "Funds_available"==$STATUS}} selected{{/if}}>可用资金</option>
        </select>
 -->        <button class="btn btn-primary" id="searchbtn">Search</button>
        <span>搜索数量总计为{{$sum}}</span>
        
      </div>
      
    
    </form>
<div style="clear: both"></div>
<div class="page">
共计{{$pages}}页
<a href="{{$pageurl}}&page=1">首页</a>
{{if $lastpage > $zero}}
<a href="{{$pageurl}}&page={{$lastpage}}">上一页</a>
{{/if}}
{{foreach from=$pg item=li key=key}}
<a href="{{$pageurl}}&page={{$li}}">{{$li}}</a>
{{/foreach}}
{{if $nextpage <= $pages}}
<a href="{{$pageurl}}&page={{$nextpage}}">下一页</a>
{{/if}}
<a href="{{$pageurl}}&page={{$pages}}">末页</a>
<a  href="javascript:exportExl();">导出csv</a>
</div>

   <!--搜索栏结束-->
<table cellpadding="0" cellspacing="0" border="0" class="stdtable" style="table-layout: fixed;">
<thead>
  <tr class="lbbt">
    <!-- <td width="3%"  bgcolor="#FEFFF1"><a onClick="allSelect('ppid[]')">全选</a></td> -->
    <!-- <td width="8%" bgcolor="#FEFFF1">ID</td> -->
    <td width="15%" bgcolor="#FEFFF1">己方账号</td>
    <td width="10%" bgcolor="#FEFFF1">日期</td>
    <td width="10%" bgcolor="#FEFFF1">交易类型</td>
    <td width="10%" bgcolor="#FEFFF1">对方邮箱</td>
    <td width="10%"  bgcolor="#FEFFF1">对方姓名</td>
    <td width="10%" bgcolor="#FEFFF1">交易ID</td>
    <td width="5%" bgcolor="#FEFFF1">状态</td>
    <td  bgcolor="#FEFFF1">货币单位</td>
    <td  bgcolor="#FEFFF1">总收费总额</td>
    <td width="5%" bgcolor="#FEFFF1" >PAYPAL收取的费用</td>
    <td width="8%" bgcolor="#FEFFF1">交易净额</td>
  </tr>
</thead>
<tbody >

{{foreach from=$list item=li key=key}}
  <tr  style="cursor:pointer;">
<!--     <td >
        <input name="ppid[]" type="checkbox" class="none" id="ppid[]" value="{{$li.wish_id}}" />
    </td> -->
     <!-- <td>{{$li.pn_id}}</td> -->
     <td>{{$li.pay_account}}</td>
     <td>{{$li.TIMESTAMP}}</td>
     <td>
    {{if "Reserve Hold"==$li.TYPE}}预留保留{{/if}}
    {{if "Payment"==$li.TYPE}}付款{{/if}}
    {{if "Recurring Payment"==$li.TYPE}}经常性支付{{/if}}
    {{if "Temporary Hold"==$li.TYPE}}临时保留{{/if}}
    {{if "Transfer"==$li.TYPE}}转让{{/if}}
    {{if "Donation"==$li.TYPE}}捐款{{/if}}
    {{if "Funds Availability"==$li.TYPE}}资金可用性{{/if}}
    {{if "Fee Reversal"==$li.TYPE}}费用冲销{{/if}}
     </td>
     <td>{{$li.EMAIL}}</td>
     <td>{{$li.NAME}}</td>
     <td>{{$li.TRANSACTIONID}}</td>
     <td>
     {{$li.STATUS}}
     </td>
     <td>{{$li.CURRENCYCODE}}</td>
     <td>{{$li.AMT}}</td>
     <td>{{$li.FEEAMT}}</td>
     <td>{{$li.NETAMT}}</td>
  </tr>
{{/foreach}}
</tbody>

</table>









     </div>
 </div>



<script type="text/javascript">

function delect(id){
$.post("/magento/ajaxbutton?op=sponsordelect",{id:id},
  function(data){
     document.location.href = data;
  }
  );

}
</script>







</body>
</html>